package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/3/3.
 */

public class ModifyPasswordReq {
    private String password;
    private String old_password;
    private String verification;
    private String secret;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOld_password() {
        return old_password;
    }

    public void setOld_password(String old_password) {
        this.old_password = old_password;
    }

    public String getVerification() {
        return verification;
    }

    public void setVerification(String verification) {
        this.verification = verification;
    }

    public String urlString() {
        return "member/reset_pwd/";
    }

    public String getSecret() {
        String string = "password=" + password + "&old_password=" + old_password + "&verification=" + verification;
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
            Log.e("ssss", "修改密码_source==>" + string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return secret;
    }
}
